import dynamicWeb from './dynamicWeb';
import dynamicFeed from './dynamicFeed';
import dynamicVideo from './dynamicVideo';
import emojiDetails from './emojiDetails';
import userProfile from '../user/userProfile';
import dynamicArticle from './dynamicArticle';
import dynamicBangumi from './dynamicBangumi';
import dynamicFeedNew, { pictures } from './dynamicFeedNew';

export default class dynamicCards {
  desc: dynamicCards;
  type: number;
  rid: number;
  user_profile: userProfile;
  dynamic_id: number;
  repost: number;
  like: number;
  is_liked: number;
  comment: number;
  orig_dy_id: number;
  orig_type: number;
  card: string;

  get mode() {
    switch (this.desc.type) {
      case 4099:
        return '影视';
      default:
        return '番剧';
    }
  }

  video: dynamicVideo;
  bangumi: dynamicBangumi;
  article: dynamicArticle;
  feed1: dynamicFeedNew;
  web: dynamicWeb;
  feed: dynamicFeed;
  display: display;
  reply: number;
  replyStr:string;
  timeStamp: number;
  time:string;
  extension: dynamicCards;
}

export class display {
  emoji_info: emojiInfo;
}

export class emojiInfo {
  emoji_details: Array<emojiDetails>;
}